package com.lmh.service;

import com.lmh.dao.ProjectTypeMapper;
import com.lmh.pojo.ProjectType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectTypeServiceImpl implements ProjectTypeService{

    @Autowired
    private ProjectTypeMapper projectTypeMapper;

    @Override
    public List<ProjectType> projecttypeall() {
        return projectTypeMapper.projecttypeall();
    }

    @Override
    public List<ProjectType> projecttypelike(String prohectTypeName) {
        String s="%"+prohectTypeName+"%";
        return projectTypeMapper.projecttypelike(s);
    }

    @Override
    public int projecttypedelete(String projectTypeId) {
        return projectTypeMapper.projecttypedelete(projectTypeId);
    }

    @Override
    public int count() {
        return projectTypeMapper.count();
    }

    @Override
    public int projecttypeadd(ProjectType projectType) {
        return projectTypeMapper.projecttypeadd(projectType);
    }
}
